package com.freight.user.dao;

import com.freight.core.base.FreightBaseDao;
import com.freight.user.entity.DriverUser;

/**
 * 司机用户信息表数据处理层
 *
 * @author huyingtai
 */

public interface DriverUserDao extends FreightBaseDao<DriverUser, Long> {

    /**
     * 根据用户id 获取驾照信息
     * 参数 userId
     **/
    DriverUser findByUserId(Long userId);

    /**
     *
     * @param vehicleId
     * @return
     */
    DriverUser findByVehicleId(Long vehicleId);

}